<?
include "header.php";
$P = new cMyPage;
$P->loadHeader();
$P->loadTitle("Welcome");
$locList = array();
$loc['url'] = '/index.php';
$loc['name'] = 'Home';
array_push($locList, $loc);
$loc['url'] = '/register.php';
$loc['name'] = 'Register';
array_push($locList, $loc);
$P->loadLocation($locList);
$P->loadLinks();
$P->loadPreContent("Register Title");
?>

	<?
	if( !$P->isLoggedIn() ) { ?> 
      <p> Register for RPI Alumni Connect </p>
      <table>
      <tbody>
      <tr>
      <td>Create a Username</td>
      <td><input id="username" name="uname12" type="text" /><div id="username_errorTxt" class="formErrText"></div></td>
      </tr>
      <tr>
      <td>Email Address</td>
      <td><input id="email" type="text" /><div id="email_errorTxt" class="formErrText"></div></td>
      </tr>
      <tr>
      <td>Password</td>
      <td><input id="pass" type="password"  /><div id="pw1_errorTxt" class="formErrText"></div></td>
      </tr>
      <tr>
      <td>Confirm Password</td>
      <td><input id="pass2" type="password" /><div id="pw2_errorTxt" class="formErrText"></div></td>
      </tr>
      <tr>
      <td align="center" colspan="2">
      <input id="registerBtn" type="button" class="btn" value="Register Now" />
      <div id="registerErrText"></div>
      </td>
      </tr>
      </tbody>
      </table>
	<?
	}
	else { ?>
		<p>Welcome to RPiConnect! Thank's for signing up. You may now visit your <a href="profile.php">profile</a> and other pages on the website.</p>
	<? } ?>
  
<? $P->loadPostContent(); $P->loadFooter(); ?>